<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>泽易购，欢迎登录</title>

    <link rel="stylesheet" type="text/css" href="/static/auth/css/webbase.css" />
    <link rel="stylesheet" type="text/css" href="/static/auth/css/pages-login.css" />
</head>

<body>
	<div class="login-box">
		<!--head-->
		<div class="py-container logoArea">
			<a href="/static/auth/" class="logo"></a>
		</div>
		<!--loginArea-->
		<div class="loginArea">
			<div class="py-container login">
				<div class="loginform">
					<ul class="sui-nav nav-tabs tab-wraped">
						<li>
							<a href="/static/auth/#index" data-toggle="tab">
								<h3>扫描登录</h3>
							</a>
						</li>
						<li class="active">
							<a href="/static/auth/#profile" data-toggle="tab">
								<h3>账户登录</h3>
							</a>
						</li>
					</ul>
					<div class="tab-content tab-wraped">
						<div id="index" class="tab-pane">
							<p>二维码登录，暂为官网二维码</p>
							<img src="/static/auth/img/wx_cz.jpg" />
						</div>
						<div id="profile" class="tab-pane  active">
							<form class="sui-form">
								<div class="input-prepend"><span class="add-on loginname"></span>
									<input id="prependedInput" type="text" placeholder="邮箱/用户名/手机号" class="span2 input-xfat">
								</div>
								<div class="input-prepend"><span class="add-on loginpwd"></span>
									<input id="prependedInput" type="password" placeholder="请输入密码" class="span2 input-xfat">
								</div>
								<div class="setting">
									<label class="checkbox inline">
          <input name="m1" type="checkbox" value="2" checked=""> 
          自动登录
        </label>
									<span class="forget">忘记密码？</span>
								</div>
								<div class="logined">
									<a class="sui-btn btn-block btn-xlarge btn-danger" href="/static/auth/home-index.html" >登&nbsp;&nbsp;录</a>
								</div>
							</form>
							<div class="otherlogin">
								<div class="types">
									<ul>
										<li><img src="/static/auth/img/gitee.png" width="35px" height="35px" onclick="giteeLogin()"/></li>
										<li><img src="/static/auth/img/sina.png" /></li>
										<li><img src="/static/auth/img/ali.png" /></li>
										<li><img src="/static/auth/img/weixin.png" /></li>
									</ul>
								</div>`
								<span class="register"><a href="/static/auth/register.html" target="_blank">立即注册</a></span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--foot-->
		<div class="py-container copyright">
			<ul>
				<li>关于我们</li>
				<li>联系我们</li>
				<li>联系客服</li>
				<li>商家入驻</li>
				<li>营销中心</li>
				<li>手机泽易购</li>
				<li>销售联盟</li>
				<li>泽易购社区</li>
			</ul>
				<p>地址：深圳市大冲国际</p>
			</div>
		</div>
	</div>
<script type="text/javascript" src="/static/auth/js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/static/auth/js/plugins/jquery.easing/jquery.easing.min.js"></script>
<script type="text/javascript" src="/static/auth/js/plugins/sui/sui.min.js"></script>
<script type="text/javascript" src="/static/auth/js/plugins/jquery-placeholder/jquery.placeholder.min.js"></script>
<script type="text/javascript" src="/static/auth/js/pages/login.js"></script>
</body>
<script>
	//1. gitee登录
	function giteeLogin(){
		//1.1 定义应用的clientId
		let clientId = "3e2291ead4eb3f33d5ea0d040067493bc560460d78774c21a4a7c0b92a8ac542"
		//1.2 定义接受返回的code码的地址
		let redirect_uri = "http://auth.hzit.com/gitee/callback/success"
		//1.3 定义送请求的url地址
		let url = `https://gitee.com/oauth/authorize?client_id=${clientId}&redirect_uri=${redirect_uri}&response_type=code`
		//1.4 最后，进行页面的跳转
		location.href = url
	}
</script>
</html>